This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
> I note that they are running a backend save, and it doesn't mention the need to refresh the ui either.
That's because the example wasn't written with the assumption that there is a UI document. This would be appropriate code for a back-end agent.
It's asking a lot of an example to expect it to cover all the possible situations in which you might try to use a function, including all the ones where you really shouldn't. That's more the job of the usage notes, I think.
I've written a little essay about working with NotesDocuments and NotesUIDocuments, which I've sent along to the doc team with the suggestion that they include it in the NotesUIDocument help document. No developers will read it, of course, once it's in the documentation, but I do what I can. I posted a copy to my blog just now.
BTW, as I always point out when someone wants to correct the help docs, there's a "feedback" link on each and every help doc where you can suggest a change, and we have staff assigned to read these and update the help.